﻿using ProTrack.Entity;
using ProTrack.IRepository;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.SystemDomain
{
    /// <summary>
    /// 系统日志数据接口
    /// </summary>
    public class LogServices : ILogServices
    {
        private readonly IBaseRepository db;

        public LogServices(IBaseRepository db)
        {
            this.db = db;
        }

        public async Task<bool> WriteErrorLog(InfraApiErrorLog model)
        {
            var result = await db.InsertAsync(model);

            return result;
        }
    }
}
